<?php

require_once 'PHPCR/RangeIterator.php';
require_once 'PHPCR/version/Version.php';
require_once 'PHPCR/NoSuchElementException.php';


/**
 * Allows easy iteration through a list of <code>Version</code> objects
 * with <code>nextNode</code> as well as a <code>skip</code> method inherited from
 * <code>RangeIterator</code>.
 *
 * @package phpcr
 * @subpackage version
 */
interface phpCr_Version_Iterator extends phpCr_RangeIterator
{
     /**
      * Returns the next <code>Version</code> in the iteration.
      *
      * @return the next <code>Version</code> in the iteration.
      * @throws NoSuchElementException if iteration has no more <code>Version</code>s.
     */
    public function nextVersion();
}
